<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0,maximum-scale=1.0, user-scalable=no"/>
    <meta http-equiv="x-ua-compatible" content="ie=edge">
    <meta name="renderer" content="webkit">
    <meta name="format-detection" content="telephone=no">
    <meta name="csrf-param" content="_homeCSRF">
    <meta name="csrf-token" content="RkJLbXljbG93b3M5JjsZG3MsCidNDg4lISl9DApUKBwCcBgnQCoEXw==">
    <title>责任报告</title>
    <meta name="keywords" content="">
    <meta name="description" content="">
    <link href="../src/img/favicon.ico" rel="shortcut icon">
    <link href="/images/favicon.ico" rel="bookmark">
    <link href="../src/css/jquery.bxslider.css" rel="stylesheet">
    <link href="../src/iconfonts/iconfont.css" rel="stylesheet">
    <link href="../src/css/bootstrap.css" rel="stylesheet">
    <link href="../src/css/dookayui.css" rel="stylesheet">
    <link href="../src/css/dx.css" rel="stylesheet">
    <link href="../src/css/dy.css" rel="stylesheet">
    <!--[if lte IE9]>
    <script src="../src/js/html5shiv.js"></script>
    <![endif]-->
    <!--[if lte IE9]>
    <script src="../src/js/respond.min.js"></script>
    <![endif]-->


    <link rel="stylesheet" href="../src/css/special-reset.css">
    <script src="../src/js/jquery-2.1.4.js"></script>




</head>
<body class="bg-gray">
<div class="header"></div>

<div class="public-wrap">
    <div class="wrap4">
        <span class="tit">责任报告</span>
        <div class="report-wrap f-cb">

        </div>
    </div>
</div>
<footer class="footer"></footer>
<!--<script src="swiper-4.2.2.min.js"></script>-->
<script>
    $(document).ready(function () {

        $(".header").load("http://192.168.100.181:8080/huoge-edu/public-file/secondMenu-header.html", function () {
            $(".px-mobile .dy-nav .bread").on("click", function () {
                $(".px-mobile .main-nav").slideToggle("slow");
            });
        });
        $(".footer").load("http://192.168.100.181:8080/huoge-edu/public-file/footer.html");
    });

    //动态获取PDF
    function serilizeURL(url) {
        var rs = url.split("?")[1];
        var arr = rs.split("&");
        var json = {};
        for (var i = 0; i < arr.length; i++) {
            if (arr[i].indexOf("=") != -1) {
                json[arr[i].split("=")[0]] = arr[i].split("=")[1];
            }
            else {
                json[arr[i]] = "undefined";
            }
        }
        return json;
    }

    window.current_url = location.href;
    var aidSid = serilizeURL(current_url);


    //获取所有PDF
    function getAllReport(a,b) {

        var reportLists;
        var reportListsLength;

        $.ajax({
            url: "http://192.168.100.181:8080/api/pdf/getPdfUrl?rootColumnInfoId=68&columnInfoId=82",
            success: function (data) {

                reportLists=data.data;
                reportListsLength=reportLists.length;

                for (var i = 0; i < reportListsLength; i++) {
                    $('.report-wrap').append(`
                        <div class="boxs">
                            <span class="f24">${reportLists[i].title}</span>
                            <a href=${reportLists[i].url} target="_blank" class="butn">下载报告</a>
                        </div>
                    `);
                }
            }});

    }

    getAllReport(aidSid.pid,aidSid.secondMenuId);
    </script>
</body>
</html>